<%-- 
    Document   : chattest
    Created on : Apr 9, 2011, 2:06:20 AM
    Author     : Ecky
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script type="text/javascript" src="script/ajaxwrap.js"></script>
        <script type="text/javascript" src="script/json2.js"></script>
        <script type="text/javascript" src="script/chatclient.js"></script>
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Hello World!</h1>

        <script type="text/javascript">
            CHAT_CLIENT.initialize("lalala", "http://localhost:8080/jesstalk");
            CHAT_CLIENT.createRoom("roomTest", ["panas", "jakarta"]);
            setTimeout(function() {
                alert("ahoy");
                CHAT_CLIENT.chatToRoom("roomTest","Hello hello alalalalalahaidhoa");
            }, 5000);
        </script>
    </body>
</html>
